package com.aji.wineserver.mapper;

import com.aji.winepojo.entity.Class;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
* @author 82527
* @description 针对表【class(分类表)】的数据库操作Mapper
* @createDate 2024-03-23 10:44:14
* @Entity com.aji.wineserver.domain.Class
*/
@Mapper
public interface ClassMapper extends BaseMapper<Class> {

    @Select("select class_id from class where class_name = #{name}")
    int getClassByName(String name);
}